#ifndef __SG_LOG_H__
#define __SG_LOG_H__

#include <iostream>

#define __SG_LOG_ON__
//#undefine __SG_LOG_ON__
#ifdef __SG_LOG_ON__

enum class SGLogLevel
{
  info,
  warning,
  debug,
  error,
  fatal
};

// 日志宏，暂时凑合，后期考虑从以前代码里搬运完整的Log类
#define SG_LOG(content)                                                                            \
  do                                                                                               \
  {                                                                                                \
    std::cout << (content) << '\n';                                                                \
  } while (false)
#else
#define SG_LOG(content)
#endif

#endif // !__SG_LOG_H__
